package com.example.sqldealtool.learnTry;

public class checkTranslate {
    public static void main(String[] args) {
        String text = "机翻测试1";
        System.out.println(isNeedTranslate(text));
    }

    public static Boolean isNeedTranslate(String targetText) {
        int n = 0;
        for (int i = 0; i < targetText.length(); i++) {
            n = (int) targetText.charAt(i);
            if (!((19968 <= n && n < 40869) || Character.isDigit(n))) {
                return true;
            }
        }
        return false;
    }
}
